<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //全部满足正则数组的需求
        let name='sas520#';
        let regs=[/^(?<str>[a-z])+\d+#$/i,/./];
        let res=regs.every((v)=>{
          return  v.test(name);
        });
     console.log(res);
     let arr=[];
    //  console.log(name.matchAll(regs));
     for (const iterator of name.matchAll(regs)) {
           arr.push(iterator);
     }
        console.log(arr);
    </script>
</body>
</html>